#include <iostream>
#include "cfmenu.h"
#include "cfgame.h"
#include "cfintro.h"
#include "cfoutro.h"
#include "game.h"
#include "SDL.h"

using namespace std;


/* Para comunicar CFMenu y CFGame */
string PLAYER1;
string PLAYER2;

int main(int argc,char **argv)
{
       Game g;

       PLAYER1 = argv[1];
       PLAYER2 = argv[2];

       /* TODO : David ha cambiado esto para probar el menu */
       g.game_states["INIT"]= (GameState *) new CFGame();
//       g.game_states["MENU"]= (GameState *) new CFMenu();
//       g.game_states["GAME"]= (GameState *) new CFGame();
//       g.game_states["OUTRO"]= (GameState *) new CFOutro();
       g.Init(800,600,24,SDL_SWSURFACE|SDL_DOUBLEBUF,0);
       g.mainLoop();

return 0;
}
